from django.urls import path
from rest_framework.routers import SimpleRouter

from api.views import GenerateMandarinView, GenerateCantoneseView, HistoryModelViewSet, ClearView

urlpatterns = [
    path('generate_mandarin/', GenerateMandarinView.as_view()),
    path('generate_cantonese/', GenerateCantoneseView.as_view()),
    path('clear/', ClearView.as_view()),
    # path('identify_mandarin/', IdentifyMandarinView.as_view()),
    # path('identify_cantonese/', IdentifyCantonese.as_view()),
]

router = SimpleRouter()
router.register(r'history', HistoryModelViewSet, basename='history')
urlpatterns += router.urls
